package com.hgyc.mom.common.exception;

import com.hgyc.mom.common.enums.CodeMsg;

/**
 * @author fengwj
 * @date 2019-12-17 15:13
 */
public class SaveException extends RuntimeException {

    private Integer code = CodeMsg.SAVE_FAIL.getCode();

    public SaveException() {
        super(CodeMsg.SAVE_FAIL.getMsg());
    }

    public SaveException(String message) {
        super(message);
    }

    public Integer getCode() {
        return code;
    }
}
